<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		
		<script type="text/javascript">
			var weight=parseFloat(prompt("请输入您的体重(kg)"));
			var height=parseFloat(prompt("请输入您的身高(m)"));
			
			var klt=weight/(height*height);
			
			alert("您的可莱托指数为:"+klt);
			
			if(klt>25){
				alert("您该减肥啦");
			}else if(klt<20){
				alert("您该多吃点啦");
			}else{
				alert("保持现在的身材哦");
			}
		</script>
	</body>
</html>
